package sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import sys.entity.TbUserEntity;
import sys.entity.User;

import java.util.List;


@Mapper
@Repository
public interface TbUserDao extends BaseMapper<TbUserEntity> {


    User login(User user);

    @Select("select * from tb_user where id=#{id}")
    List<TbUserEntity> selectAll(TbUserEntity entity);
}
